#!/bin/bash

# 先删除原来的这些进程
if [ -f "PID_SERVER_1" ]; then
        kill -9 `cat PID_SERVER_1`
fi
if [ -f "PID_SERVER_2" ]; then
        kill -9 `cat PID_SERVER_2`
fi
if [ -f "PID_SERVER_3" ]; then
        kill -9 `cat PID_SERVER_3`
fi
if [ -f "PID_SERVER_4" ]; then
        kill -9 `cat PID_SERVER_4`
fi
if [ -f "PID_SERVER_5" ]; then
        kill -9 `cat PID_SERVER_5`
fi

# 删除文件
rm *.out PID_*